package com.chenziwen.scala.chapter03;

/**
 * @ClassName JavaPerson
 * @Description
 * @Author Administrator
 * @Date 2019/10/12 14:12
 * @Version 1.0
 **/
public class JavaPerson {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}


class Emp {

}


class Test {
    public static void main(String[] args) throws InterruptedException {
        JavaPerson javaPerson = new JavaPerson();
        javaPerson.setName("zhangsan");
        System.out.println(javaPerson.getName());

        Thread t1 = new Thread();
        Thread t2 = new Thread();

        t1.start();
        t2.start();

        // 当前线程休眠，与t1无关，此处应该是Thread.sleep()(当前运行的线程休眠)
        t1.sleep(1000);
        t2.wait(1000);
    }
}
